package struct.proxy;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @Author: fxy
 * @Date: 2022/08/18/17:42
 * @Description:
 */
public class TargetProxy implements InvocationHandler {

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println(method.getName());
        System.out.println("after");
        return "2222";
    }
}
